package com.mysteel.order.feign;

import com.mysteel.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ProjectName: mail
 * ClassName: CartFeignService
 * Description:
 * date: 2021/03/20/020 15:26
 *
 * @author xiaochao
 */
@FeignClient("cart")
public interface CartFeignService {
    /**
     * 查询用户所有选中的购物项
     * @return
     */
    @ResponseBody
    @GetMapping("/currentUserCartItems")
    List<OrderItemVo> getCurrentUserCartItems();
}
